var frisby = require('frisby');
var uuid = require('uuid');


frisby.create('更改设备登陆密码')
    .post('http://192.168.247.88:9090/hub/device/changepwd',{
        'username':'admin',
        'password':'asd,123'
      })
    // .inspectJSON()
    .expectJSON({
        "result":{
          "value":"success",
          "info":"密码更改成功"
        }})
.toss()

frisby.create('密码更改失败')
    .post('http://192.168.247.88:9090/hub/device/changepwd',{
        'username':'admin',
        'password':'asd,123'
      })
// .in
    .expectJSON({
        "result":{
          "value":"error",
          "info":"密码更改失败"
        }})
.toss()
